/*
 * bsp_uart.h
 *
 *  Created on: 2025 Mar 16
 *      Author: SFLY
 */

#ifndef XTFOCLIB_BOARD_DRIVERS_BSP_UART_H_
#define XTFOCLIB_BOARD_DRIVERS_BSP_UART_H_
#include "driverlib.h"
#include "device.h"
#include "stdio.h"
#include <stdarg.h>
#include <math.h>
#define UART_TX_GPIO 12
#define UART_RX_GPIO 13
#define UART_TX_GPIO_MUX GPIO_12_SCIB_TX
#define UART_RX_GPIO_MUX GPIO_13_SCIB_RX
#define UART_BASE    SCIB_BASE
#define UART_BAUND   115200

#define BUFFER_SIZE 128

void Bsp_UART_PIN_Init(void);
void Bsp_UART_Init(void);
// 假设的串口发送函数
void uart_send_char(char c);
void uart_send_string(const char *str, int len);
int printf(const char *format, ...);
//void StdOutInit(volatile struct SCI_REGS *sci, int baudrate, uint32_t pin, GPIO_PinMux pin_mux);
//int printf(const char *str, ...);

#endif /* XTFOCLIB_BOARD_DRIVERS_BSP_UART_H_ */
